//
//  BusExtension.m
//  Bus_iPhone
//
//  Created by antunnel on 12-7-2.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import "BusExtension.h"

@implementation NSObject (BusExtension)


-(void)showAlertWithTitle:(NSString *)title msg:(NSString *)msg{

    UIAlertView *alert=[[UIAlertView alloc]initWithTitle:title message:msg delegate:nil cancelButtonTitle:@"确定" otherButtonTitles:nil, nil];
    [alert show];
    [alert release];
}

-(BOOL)isIos5Later{

    UIDevice *device=[UIDevice currentDevice];
    NSString *osVersion=device.systemVersion;
    if ([osVersion floatValue]>=5.0f) {
        return YES;
    }else {
        return NO;
    }
}
@end
